/*
 * Conf.h
 *
 *  Created on: 2021��5��7��
 *      Author: sunjipeng
 */

#ifndef CONF_H_
#define CONF_H_
#include "Buzzer.h"
enum Mode {
	AutoKey,
	HandKey
};
enum class UsbMode {
	Mouse,
	Keyboard
};

class Conf {
private:
	enum Mode mode = AutoKey;
	enum UsbMode usbMode = UsbMode::Keyboard;
	unsigned short wpm = 15;
	unsigned int buzzerPin = 9;

public:
	enum Mode getMode();
	enum UsbMode getUsbMode();

	void setMode(enum Mode mode = AutoKey) {
		this->mode = mode;
	}

	void setUsbMode(enum UsbMode usbMode = UsbMode::Keyboard) {
		this->usbMode = usbMode;
	}

	unsigned short getWpm() {
		return this->wpm;
	}

	unsigned int getBuzzerPin() {

	}
};

// extern Conf conf;
// extern Buzzer buzzer;
// extern class MorseUtils morse;
// extern class AutoKey autoKey;

// unsigned long dit_tm;



#endif /* CONF_H_ */
